@import "Reset";

@mixin clearfix {
  &:after {
    clear: both;
    content: '.';
    display: block;
    height: 0;
    line-height: 0;
    overflow: hidden;
  }
  *height: 1%;
}

html, body {
  width: 100%;
  height: 100%;
}

$cloor: #333;
$fc: #fff;
.main {
  width: 1200px;
  margin: 0 auto;
}

header {
  @include clearfix;

  .topbar {
    width: 100%;
    background: $cloor;
    font-size: 12px;
    color: $fc;

    .area-center {
      @include clearfix;

      .bar-left {
        float: left;

        ul {
          @include clearfix;

          li {
            float: left;
            height: 32px;
            line-height: 32px;
            margin-left: 10px;
          }
        }
      }

      .bar-right {
        float: right;

        ul {
          @include clearfix;

          li {
            float: left;
            height: 40px;
            line-height: 32px;
            margin-left: 10px;
          }

          .self {
            position: relative;

            ul {
              position: absolute;
              top: 40px;
              display: none;
            }

            &:hover {
              background: white;
              color: #2884c7;

              ul {
                display: block;
                background: #ffffff;
                width: 60px;
              }
            }
          }

          .phone {
            position: relative;

            div {
              position: absolute;
              top: 40px;
              display: none;
              width: 120px;
              height: 80px;
              background: #ffffff;

              img {
                display: block;

                margin: 0 auto;
              }
            }

            &:hover {
              background: white;
              color: #2884c7;

              div {
                display: block;
              }
            }


          }

        }
      }
    }

  }

  .log {
    @include clearfix;

    .clogo {
      float: left;
      width: 240px;

      img {
        display: block;
      }
    }

    .text {
      float: left;
      height: 120px;
      line-height: 120px;
      text-align: center;
    }

    .flow {
      float: right;
      height: 120px;
      line-height: 120px;
      vertical-align: middle;

      img {
        display: block;
        margin-top: 20px;
      }
    }
  }
}

section {
  .goodslist {
    @include clearfix;

    .goods-top {
      border: 1px solid #acabab;
      @include clearfix;

      .gdl {
        float: left;
        border-bottom: 3px solid #c80000;
        margin-left: 22px;
        height: 47px;
        line-height: 50px;
        font-size: 16px;
        color: #c80000;

        span {
          color: #ff8200;
          margin-left: 10px;
        }
      }

      .gdr {
        float: right;
        position: relative;
        min-width: 180px;
        width: 220px;
        height: 50px;
        text-align: right;
        z-index: 9;

        span {
          line-height: 50px;
          color: #999;
          font-size: 12px;
          padding-right: 10px;
        }

        .pleace {
          width: 96px;
          text-decoration: none;
          display: inline-block;
          height: 34px;
          margin: 7px;
          border: 1px solid #c1c1c1;
          background-color: #f9f9f9;
          font-size: 12px;
          color: #666;
          line-height: 34px;
          padding: 0 20px;
          cursor: pointer;
        }
      }
    }

    .goodscontent {
      //height: 38px;
      line-height: 38px;
      text-align: center;
      background-color: #f9f9f9;
      padding: 0 22px;
      padding-bottom: 20px;
      font-size: 12px;
      @include clearfix;
      ul {
        .onelist {
          @include clearfix;

          .product_selected {
            width: 55px;
            float: left;
          }

          .product_content {
            width: 443px;
            height: auto;
            float: left;
          }

          .product_price {
            width: 160px;
            height: auto;
            float: left;
          }

          .product_cost {
            width: 140px;
            height: auto;
            float: left;
          }

          .product_number {
            width: 130px;
            height: auto;
            float: left;
          }

          .product_exercisable {
            width: 92px;
            height: auto;
            float: left;
          }
        }

        .godsd {
          margin-top: 6px;
          background-color: #fff;
          border: 1px solid #ececec;
          padding: 20px 21px;
          @include clearfix;

          .product_selected_shopName {
            border-bottom: dotted 1px #ECECEC;
            font-size: 12px;
            margin-top: -20px;
            overflow: hidden;
            height: 35px;
            color: #4a4a4a;
            margin-bottom: 20px;
            padding-left: 1px;

            .le {
              float: left;
              color: #fff;
              background: #d90204;
              line-height: 18px;
              margin-top: 9px;
              width: 54px;
              text-align: center;
              border-radius: 3px;
            }
          }

          .selected {
            width: 25px;
            height: 100%;
            float: left;

            input {
              border: 1px solid #ccc;
            }
          }

          .contimg {
            @include clearfix;
            width: 477px;
            height: auto;
            float: left;

            img {
              display: block;
              float: left;
              width: 70px;
              height: 70px;
            }

            .phonename {
              font-size: 12px;
              //display: inline-block;
              text-align: left;
            }
          }

          .oneprice {
            width: 90px;
            float: left;
            height: 20px;
            line-height: 20px;
            padding: 0 20px;
            text-align: left;
            span {
              color: #333;
              padding-left: 14px;
            }
          }

          .goods_num{
            width: 90px;
            height: auto;
            margin-left: 28px;
            float: left;
            @include clearfix;
            border: 1px solid #ececec;
            .num_minus{
              width: 30px;
              height: 26px;
              float: left;

              margin: 0 auto;
              span{
                color: #7f7f7f;
                font-size: 16px;
                font-weight: bold;
              }
            }
            .num_text{
              width: 24px;
              float: left;
              display: inline-block;
              input{
                width: 100%;
                height: 26px;
                line-height: 26px;
                color: #666;
                font-size: 12px;
                font-weight: bold;
                text-align: center;
                border: none;
              }
            }
            .num_plus{
              width: 24px;
              text-align: center;
              display: inline-block;

              cursor: pointer;
              span{
                color: #7f7f7f;
                font-size: 16px;
                font-weight: bold;
            }
            }
          }

          .inallprice{
            height: 40px;
            line-height: 40px;
            text-align: center;
            float: left;
            margin-left: 57px;
          }

          .remove{
            line-height: 40px;
            text-align: center;

            float: left;
            margin: 0 auto;
            margin-left: 90px;
          }
        }
      }
    }

    .jiezhang{
      @include clearfix;
      width: 100%;
      height: 50px;
      border-top: 2px solid #eaeaea;
      background-color: #ffffff;
      margin-top: 10px;
      .jzl{
        float: left;
        width: 259px;
        line-height: 50px;
        font-size: 12px;

      }
      .jzr{
        height: 50px;
        width:390px ;
        float: right;
        font-size: 12px;
        .yx{
          float: left;
          line-height: 50px;
          .yxc{
            color: #f01e00;
          }
        }
        .total{
          float: left;
          color: #f01e00;
          //width: ;
          .allp{
            line-height: 50px;
            color: #f01e00;
            font-size: 18px;
            padding: 0 12px;
          }
        }

        .gojs{
          float: left;
          a{
            display: inline-block;
            width: 100px;
            height: 50px;
            line-height: 50px;
            background-color: #f01e00;
            color: #ffffff;
            text-align: center;
            font-size: 18px;
          }
        }
      }
    }
  }
}


.le-foot {
  background:#f2f2f2;
  ul {
    @include clearfix;

    li {
      float: left;
      margin-left: 100px;
    }
  }
}
footer {
  background: #151515;
}